<?php
namespace Plu\qdh\Controllers\Admin;

use Phalcon\Mvc\Controller;


/**
 * @RoutePrefix('/houtai')
 */
class IndexController extends ControllerBase {
    /**
     * @Get('/')
     */
    public function indexAction() {
        $isLogin = $this->passport->isAdminLogin();
        if ($isLogin) {
            $this->view->pick("admin/index");
            return;
        }
        return $this->response->redirect("https://ydpwu.com/houtai/login", true);
        
    }

    /**
     * @Get('/login')
     */
    public function loginAction() {
        $this->view->pick("admin/login");
    }

    

}

?>
